package com.xlh.support.quiz.dao.ext;

import com.xlh.support.quiz.domain.Quiz;
import com.xlh.support.quiz.domain.example.QuizExample;
import com.xlh.support.quiz.vo.UserPerformanceCountVO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface QuizMapperExt {

    /**
     * 查询用户答题情况
     * @param chapterId 章节ID
     * @param userIds   用户ID
     * @param performance 绩效
     * @return
     */
    List<UserPerformanceCountVO> getUserPerformance(@Param("chapterId") Long chapterId,
                                                    @Param("userIds") List<Long> userIds,
                                                    @Param("performance") Integer performance);

}